<?php
class InitHook{//钩子,
	public function run(){//如果不存在安装模块和所文件时
		if(Q('m')!='Install' && !is_file('CMS/Install/lock.php')){//执行安装
			go('Install/Index/install');
		}
	}	
}//钩子类